<div class="col-xs-12 dataTables_wrapper">
    {% if handle is defined %}
    <form id="nodeAction" class="form-horizontal ajax-submit" data-target="#main-content" role="form"
          accept-charset="utf-8" method="post" action="{{ url(['for':'adminNodeHandle']) }}?re_url={{ url }}">
        {% endif %}
        <table class="table table-striped table-bordered table-hover" id="sample-table-1">
            <thead>
            <tr>
                {% if handle is defined %}
                    <th class="center">
                        <input type="checkbox" class="checkAll" name="checkAll"> <span class="lbl"></span>
                    </th>
                {% endif %}
                {% for key,value in thead %}
                    <th id="th-{{ key }}">{% if is_array(value) %}{{ value['name'] }}{% else %}{{ value }}{% endif %}</th>
                {% endfor %}
            </tr>
            </thead>
            <tbody>
            {% for item in data.items %}
                <tr class="tr-{{ item.node_id }}">
                    {% if handle is defined %}
                        <td class="center">
                            <input type="checkbox" class="checkAll" name="checkAll[{{ item.node_id }}]"> <span
                                    class="lbl"></span>
                        </td>
                    {% endif %}
                    {% for key,value in thead %}
                        {% if is_array(value) %}
                            {% set value = value['id'] %}
                        {% endif %}
                        <td class="center td-{{ key }}">{{ view.r(item[value]) }}</td>
                    {% endfor %}
                </tr>
            {% else %}
                <tr>
                    <td colspan="7">没有数据</td>
                </tr>
            {% endfor %}
            </tbody>
        </table>
        <div class="space-4"></div>
        <p>
            <i>选中文章：</i>
            <select name="action">
                <option value="delete">彻底删除</option>
                <option value="recycle">丢到回收站</option>
            </select>
            <button type="submit" class="btn btn-xs btn-success" value="recycle">提交</button>
        </p>
        {% if handle is defined %}
    </form>
    {% endif %}
    <div class="space-8"></div>
    {{ partial("Themes/AdminLTE/templates/paginator") }}
</div>
<script type="text/javascript">
    $(function () {
        $('[data-toggle="tooltip"]').tooltip();
    });
</script>